package com.github.shiqiyue.eatest;

import org.apache.commons.lang3.builder.ToStringBuilder;

import java.util.Date;

/***
 * 书籍
 * @author wenyao.wu
 * @date 2018/7/12
 */
public class Book {

    private Long id;

    private String no;

    private String name;

    private Date addDate;

    private Date editDate;

    private Long version;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getAddDate() {
        return addDate;
    }

    public void setAddDate(Date addDate) {
        this.addDate = addDate;
    }

    public Date getEditDate() {
        return editDate;
    }

    public void setEditDate(Date editDate) {
        this.editDate = editDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this)
                .append("id", id)
                .append("no", no)
                .append("name", name)
                .append("addDate", addDate)
                .append("editDate", editDate)
                .append("version", version)
                .toString();
    }
}
